package com.zst.sw.server.module.span;

import com.zst.sw.server.module.segmentref.SegmentRef;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

@Getter
@Setter
public class Span {
    private int spanId;
    private int parentSpanId;
    private long startTime;
    private long endTime;
    /**
     * 0: entry, 1: exit, 2: local
     */
    private int spanType;
    /**
     * 0: unknown, 1: database, 2: rpcframework, 3: http, 4: mq, 5: cache, 6: faas
     */
    private int spanLayer;
    private int componentId;
    private boolean isError;
    private Map<String, String> tags;
    private List<SegmentRef> refs;
}
